<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
            <title>Edit hotel</title>
        </head>
        <body>
            <h1>Edit hotel</h1>
            <h2>Locale: <h:outputText value="#{hotelManager.locale}"/></h2>
            <h:form>
                <h:panelGrid columns="2" columnClasses="label,field" styleClass="formular">
                    
                    <h:outputText value="Id"/>
                    <h:outputText value="#{hotelManager.hotel.id}"/>
                    
                    <h:outputLabel for="hotelName" value="Name"/>
                    <h:inputText id="hotelName" 
                                 value="#{hotelManager.hotel.name}"/>
                    
                    <h:outputLabel for="hotelDescription" value="Description"/>
                    <h:inputTextarea id="hotelDescription" 
                                 value="#{hotelManager.hotel.description}"/>
                    
                </h:panelGrid>
                
                <h:commandButton action="#{hotelManager.save}" value="Save"/>
                <h:commandButton action="list" value="Return"/>
                
            </h:form>
            
        </body>
    </html>
</f:view>